package com.bysj.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合同管理对象 bysj_contract_management
 * 
 * @author bysj
 * @date 2024-02-03
 */
public class ContractManagement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 合同编号 */
    @Excel(name = "合同编号")
    private String contractNumber;

    /** 签署日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签署日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date signingDate;

    /** 签署地点 */
    @Excel(name = "签署地点")
    private String signingLocation;

    /** 签署状态 */
    @Excel(name = "签署状态")
    private String signingStatus;

    /** 房屋地址 */
    @Excel(name = "房屋地址")
    private String propertyAddress;

    /** 房屋面积 */
    @Excel(name = "房屋面积")
    private BigDecimal propertyArea;

    /** 户型 */
    @Excel(name = "户型")
    private String layout;

    /** 装修风格 */
    @Excel(name = "装修风格")
    private String decorationStyle;

    /** 房屋总价 */
    @Excel(name = "房屋总价")
    private BigDecimal totalPrice;

    /** 首付金额 */
    @Excel(name = "首付金额")
    private BigDecimal downPayment;

    /** 贷款金额 */
    @Excel(name = "贷款金额")
    private BigDecimal loanAmount;

    /** 首付比例 */
    @Excel(name = "首付比例")
    private BigDecimal downPaymentRatio;

    /** 付款方式 */
    @Excel(name = "付款方式")
    private String paymentMethod;

    /** 交付日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交付日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryDate;

    /** 买方姓名 */
    @Excel(name = "买方姓名")
    private String buyerName;

    /** 买方身份证 */
    @Excel(name = "买方身份证")
    private String buyerIdCard;

    /** 买方电话 */
    @Excel(name = "买方电话")
    private String buyerPhone;

    /** 卖方姓名 */
    @Excel(name = "卖方姓名")
    private String sellerName;

    /** 卖方身份证 */
    @Excel(name = "卖方身份证")
    private String sellerIdCard;

    /** 卖方电话 */
    @Excel(name = "卖方电话")
    private String sellerPhone;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setContractNumber(String contractNumber) 
    {
        this.contractNumber = contractNumber;
    }

    public String getContractNumber() 
    {
        return contractNumber;
    }
    public void setSigningDate(Date signingDate) 
    {
        this.signingDate = signingDate;
    }

    public Date getSigningDate() 
    {
        return signingDate;
    }
    public void setSigningLocation(String signingLocation) 
    {
        this.signingLocation = signingLocation;
    }

    public String getSigningLocation() 
    {
        return signingLocation;
    }
    public void setSigningStatus(String signingStatus) 
    {
        this.signingStatus = signingStatus;
    }

    public String getSigningStatus() 
    {
        return signingStatus;
    }
    public void setPropertyAddress(String propertyAddress) 
    {
        this.propertyAddress = propertyAddress;
    }

    public String getPropertyAddress() 
    {
        return propertyAddress;
    }
    public void setPropertyArea(BigDecimal propertyArea) 
    {
        this.propertyArea = propertyArea;
    }

    public BigDecimal getPropertyArea() 
    {
        return propertyArea;
    }
    public void setLayout(String layout) 
    {
        this.layout = layout;
    }

    public String getLayout() 
    {
        return layout;
    }
    public void setDecorationStyle(String decorationStyle) 
    {
        this.decorationStyle = decorationStyle;
    }

    public String getDecorationStyle() 
    {
        return decorationStyle;
    }
    public void setTotalPrice(BigDecimal totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() 
    {
        return totalPrice;
    }
    public void setDownPayment(BigDecimal downPayment) 
    {
        this.downPayment = downPayment;
    }

    public BigDecimal getDownPayment() 
    {
        return downPayment;
    }
    public void setLoanAmount(BigDecimal loanAmount) 
    {
        this.loanAmount = loanAmount;
    }

    public BigDecimal getLoanAmount() 
    {
        return loanAmount;
    }
    public void setDownPaymentRatio(BigDecimal downPaymentRatio) 
    {
        this.downPaymentRatio = downPaymentRatio;
    }

    public BigDecimal getDownPaymentRatio() 
    {
        return downPaymentRatio;
    }
    public void setPaymentMethod(String paymentMethod) 
    {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentMethod() 
    {
        return paymentMethod;
    }
    public void setDeliveryDate(Date deliveryDate) 
    {
        this.deliveryDate = deliveryDate;
    }

    public Date getDeliveryDate() 
    {
        return deliveryDate;
    }
    public void setBuyerName(String buyerName) 
    {
        this.buyerName = buyerName;
    }

    public String getBuyerName() 
    {
        return buyerName;
    }
    public void setBuyerIdCard(String buyerIdCard) 
    {
        this.buyerIdCard = buyerIdCard;
    }

    public String getBuyerIdCard() 
    {
        return buyerIdCard;
    }
    public void setBuyerPhone(String buyerPhone) 
    {
        this.buyerPhone = buyerPhone;
    }

    public String getBuyerPhone() 
    {
        return buyerPhone;
    }
    public void setSellerName(String sellerName) 
    {
        this.sellerName = sellerName;
    }

    public String getSellerName() 
    {
        return sellerName;
    }
    public void setSellerIdCard(String sellerIdCard) 
    {
        this.sellerIdCard = sellerIdCard;
    }

    public String getSellerIdCard() 
    {
        return sellerIdCard;
    }
    public void setSellerPhone(String sellerPhone) 
    {
        this.sellerPhone = sellerPhone;
    }

    public String getSellerPhone() 
    {
        return sellerPhone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("contractNumber", getContractNumber())
            .append("signingDate", getSigningDate())
            .append("signingLocation", getSigningLocation())
            .append("signingStatus", getSigningStatus())
            .append("propertyAddress", getPropertyAddress())
            .append("propertyArea", getPropertyArea())
            .append("layout", getLayout())
            .append("decorationStyle", getDecorationStyle())
            .append("totalPrice", getTotalPrice())
            .append("downPayment", getDownPayment())
            .append("loanAmount", getLoanAmount())
            .append("downPaymentRatio", getDownPaymentRatio())
            .append("paymentMethod", getPaymentMethod())
            .append("deliveryDate", getDeliveryDate())
            .append("buyerName", getBuyerName())
            .append("buyerIdCard", getBuyerIdCard())
            .append("buyerPhone", getBuyerPhone())
            .append("sellerName", getSellerName())
            .append("sellerIdCard", getSellerIdCard())
            .append("sellerPhone", getSellerPhone())
            .toString();
    }
}
